using System;
using UnityEngine;

[Serializable]
public class PowerUp
{
	public PowerUpType type;

	public string itemName;

	public int price;

	public string desc;

	public string sprName;

	public string PrefKey => "PowerUp" + type.ToString();

	public int Amount
	{
		get
		{
			return PlayerPrefs.GetInt(PrefKey, 0);
		}
		set
		{
			PlayerPrefs.SetInt(PrefKey, value);
		}
	}
}
